/**
 * @file main.cpp
 * @brief 
 * @author LWL (lwl510ll@163.cn)
 * @version 1.0
 * @date 2025-05-26
 * 
 * @copyright Copyright (c) 2025  LWL
 * 
 */

#include <iostream>
#include "rtsp.h"

int main(int argc, char** argv)
{
    Rtsp *rtsp = new Rtsp();
    rtsp->init(2554, "172.27.45.246");

    RtspProtocol *rtsp_protocol = RtspProtocol::get_instance();
    rtsp_protocol->add_tcp_server_fd(rtsp->get_sockfd());
    rtsp_protocol->start();

    while(1);
    delete rtsp_protocol;
    delete rtsp;
    return 0;
}